#ifndef _FLYMAPCONTRL_H_
#define _FLYMAPCONTRL_H_


#include <string.h>
#include <memory>
#include <thread>
#include <functional>

using namespace std;

class FlyMapContrl 
{
public:
    FlyMapContrl ();
    ~FlyMapContrl ();
public:
    static FlyMapContrl *Instance(){
        if(!_Instance){
            _Instance = new FlyMapContrl();
        }
        return _Instance;
    }

   void initilize();

private:
	static  FlyMapContrl *_Instance;
	bool m_bRunning = false;
    std::thread m_thId;
    std::thread m_otherId;

public:
    void AlgoStart();//发送算法开始信号
    void AlgoFinish();//发送算法完成信号
    int SendThreadFinish(void);
    bool FinishThreadInit(void);
    bool FinishThreadUninit(void);

    bool OtherThreadInit(void);
    int OtherThread(void);
};

#endif
